<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@ include file="/commons/meta.jsp" %>
	<link href="${ctx }/styles/css_uax.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
<%@include file="/commons/top.jsp" %>
  <div id="sub-header" style="width: 900px">
	<s:form action="/Members/savePwd.do" method="post" theme="simple">
		<table width="100%"  cellpadding="3" cellspacing="6">
			<tr>
				<td width="200">
					<%@ include file="/front/Members/memberLeft.jsp" %>
				</td>
				<td   valign="top">
					<table class="formTable" >
						<tr>
							<td colspan="2"><%@ include file="/commons/messages.jsp" %></td>
						</tr>
						<tr>
							<td colspan="2"  align="center" style="font-size: 20px;font-weight: bold;text-align: center;height: 30px;">用户密码修改</td>
						</tr>
						
						<tr>
							<td class="tdLabel">用户名:</td>
							<td><s:textfield name="loginName" theme="simple" cssClass="input25" cssStyle=" width: 120px " maxlength="16" value="%{model.loginName}" readonly="true" /></td>
						</tr>
						
						<tr>
							<td class="tdLabel">旧密码:</td>
							<td><s:password maxlength="16" size="16" cssStyle=" width: 120px " name="password" cssClass="required "/></td>
						</tr>
						
						<tr>
							<td class="tdLabel">新密码:</td>
							<td><s:password maxlength="16"  size="16" cssStyle=" width: 120px " name="newPassword" id="newPassword" cssClass="required "/></td>
						</tr>
						
						<tr>
							<td class="tdLabel">重复新密码:</td>
							<td><s:password maxlength="16" size="16" cssStyle=" width: 120px " name="newPassword2" cssClass="equals-newPassword required"/></td>
						</tr>
						
						<tr>
							<td colspan="2" align="center">
							<input id="submitButton1" class="submitbutton"  name="submitButton" type="submit" value=""  /></td>
						</tr>
						
						
					</table>
				</td>
				
			</tr>
			
		</table>
	</s:form>
  </div>
  <jsp:include page="/commons/bottom.html" flush="true"></jsp:include>
</div>

<script>
	
	new Validation(document.forms[0],{onSubmit:true,onFormValidate : function(result,form) {
		var finalResult = result;
		
		//在这里添加自定义验证
		
		return disableSubmit(finalResult,'submitButton');
	}});
</script>

</body>
</html>